<script ka:scope="global">
  var msg = 'hello world';
</script>
<div th:include="this:with-called" th:with="foo: 'bar', msg: msg"></div>
